package com.dodoke.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dodoke.entity.RetailWarehouse;
import com.dodoke.vo.RetailWarehouseAllListVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 仓库信息数据库操作接口
 */
@Mapper
public interface RetailWarehouseMapper extends BaseMapper<RetailWarehouse> {
    /**
     * 新增仓库信息
     *
     * @param retailWarehouse
     * @return
     */
    int insertRetailWarehouse(RetailWarehouse retailWarehouse);

    /**
     * 修改仓库信息
     *
     * @param retailWarehouse
     * @return
     */
    int updateRetailWarehouse(RetailWarehouse retailWarehouse);

    /**
     * 获取所有的仓库列表
     * @return
     */
    List<RetailWarehouseAllListVO> selectAllList();
}
